﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Qreed.Windows.Forms
{
    /// <summary>
    /// Used as event arguments by <see cref="IntellisenseWindow"/>
    /// </summary>
    public class IntellisenseEventArgs : EventArgs
    {
        private string _intellisenseText;
        /// <summary>
        /// Gets or sets the insert text.
        /// </summary>
        /// <value>The insert text.</value>
        public string IntellisenseText
        {
            get { return this._intellisenseText; }
            set { this._intellisenseText = value; }
        }

        private bool _cancel;
        /// <summary>
        /// Gets or sets a value indicating whether this <see cref="IntellisenseEventArgs"/> is cancel.
        /// </summary>
        /// <value><c>true</c> if cancel; otherwise, <c>false</c>.</value>
        public bool Cancel
        {
            get { return this._cancel; }
            set { this._cancel = value; }
        }
    }
}
